<template>
  <div>
    <el-menu
      :default-active="activeIndex"
      mode="horizontal"
      background-color="transparent"
      text-color="#666"
      active-text-color="#409EFF"
      router
    >
      <el-menu-item index="/"
        ><i class="fa fa-home"></i><span>首页</span></el-menu-item
      >
      <el-menu-item index="/merge"
        ><i class="fa fa-book"></i><span>归档</span></el-menu-item
      >
      <el-menu-item index="/category"
        ><i class="fa fa-database"></i><span>分类</span></el-menu-item
      >
      <el-menu-item index="/3"
        ><i class="fa fa-plane"></i><span>导航二</span></el-menu-item
      >
      <el-menu-item index="/4"
        ><i class="fa fa-rss"></i><span>导航二</span></el-menu-item
      >
      <el-menu-item index="/5"
        ><i class="fa fa-paper-plane"></i><span>导航二</span></el-menu-item
      >
    </el-menu>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeIndex: "/",
    };
  },
};
</script>

<style lang="less">
.el-menu-item i {
  color: #666;
}
</style>